﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CaltechSoft.Service.EntityFW.Entity;

namespace CaltechSoft.Service.EntityFW.Repository
{
    public interface IUnitOfWork
    {
        // IGenericRepository<Section> SectionRepository();
        void Save();
        //object GetRepository(Type type);
        IGenericRepository<T> Repository<T>() where T : class;
        void BeginTransaction();
        bool Commit();
        void Rollback();
    }
}